<?php
  include_once('datediff.php');

$sql_aq="select * from $tb_aq  where isshow='1'";
$cn_aq=mysql_db_query($db_name,$sql_aq);

$i=1;
$currentdate =date('Y-m-d');
// while($row_aq = mysql_fetch_array($cn_aq)){
//}


//}

//showaq();
?>
<link href="../images/bj.css" rel="stylesheet" type="text/css">

<table width="100%" height="88"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="49"><img src="images/aqts.jpg" width="191" height="49"></td>
      </tr>
      <tr class="aq_mibg">
        <td height="180">
		

<table width="100%"  border="0" cellspacing="6" cellpadding="0"  class="aq_text">
  <?php while($row_aq = mysql_fetch_array($cn_aq)){
  $startdate[$i]=$row_aq[3];
$days[$i]=$row_aq[2];
$cadays=datediff('d',$startdate[$i],$currentdate);

if($cadays>0){
$days[$i]+=$cadays;
   }

  ?>
  <tr>
    <td width="645"><?php echo $row_aq[title];?>：</td>
    <td width="110"><?php echo $days[$i]?>天</td>
	<?php 
	$i++;

	}?>
  </tr>
</table>
</td>
      </tr>
      <tr>
        <td><img src="images/xia.gif" width="191" height="14"></td>
      </tr>
    </table>